package com.travel.server.manager.impl.controller;

import com.travel.server.manager.api.IOrderService;
import com.travel.server.manager.dto.request.order.*;
import com.travel.server.manager.impl.controller.base.AbstractController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: LiZhenhui
 * @Date: 2018/10/17 16:43
 * @Desc:
 */
@RestController
@Slf4j
public class OrderController extends AbstractController implements IOrderService {
    @Override
    public Object queryOrderList(@RequestBody QueryOrderListRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object updateOrderInfo(@RequestBody UpdateOrderInfoRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object transferOrder(@RequestBody TransferOrderRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryRightOrderList(@RequestBody QueryRightOrderListRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryOrderDetail(@RequestBody QueryOrderDetailRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object updateOrderPrice(@RequestBody UpdateOrderPriceRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object refundOrder(@RequestBody RefundOrderRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryRefundOrderDetail(@RequestBody QueryRefundOrderDetailRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryOrderQuestion(@RequestBody QueryOrderQuestionRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryOrderTravelData(@RequestBody QueryOrderTravelDataRequest request) {
        return this.getCommand().handle(request);
    }
}
